﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PersonalHealth.Data.Model;
using Core.Model;
using HealthManagement.Models;

namespace HealthManagement.Common
{
    public class AppData
    {
        private static Doctor user;
        public static Doctor User
        {
            get
            {
                return user;
            }
            set
            {
                user = value;
                if (value != null)
                {
                    user.Password = Convert.ToBase64String(Encoding.Default.GetBytes(user.Password));
                }
            }
        }
        
        private static List<MessageModel> errList = new List<MessageModel>();
        public static List<MessageModel> ErrList
        {
            get
            {
                return errList;
            }
        }

        private static List<MessageModel> noticeList = new List<MessageModel>();
        public static List<MessageModel> NoticeList
        {
            get
            {
                return noticeList;
            }
        }
    }
}
